package com.bw.base.imageLoader.impl;

import android.content.Context;
import android.widget.ImageView;


import com.bw.base.R;
import com.bw.base.imageLoader.IImageLoader;
import com.bw.base.imageLoader.ImageOptions;
import com.squareup.picasso.Picasso;

import java.io.File;

public class PicassoStrategy implements IImageLoader {
    @Override
    public void loadFileIntoImageView(Context context, String url, ImageView imageView, ImageOptions options) {
    }

    @Override
    public void loadFileIntoImageView(Context context, byte[] content, ImageView imageView, ImageOptions options) {

    }

    @Override
    public void loadFileIntoImageView(Context context, int resId, ImageView imageView, ImageOptions options) {

    }

    @Override
    public void loadFileIntoImageView(Context context, File file, ImageView imageView, ImageOptions options) {

    }
    private void loadImageView(Context context, String object, ImageView imageView, ImageOptions imageOptions){
        Picasso picasso = Picasso.get();
        picasso.load(object)
                .error(R.mipmap.ic_launcher)
                .placeholder(R.mipmap.ic_launcher)
                .into(imageView);
    }
}